<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
				xmlns:page="http://actorsguildframework.org/pageDescription">
<xsl:output method = "xml" omit-xml-declaration="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>

<xsl:template match="/page:page">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="shortcut icon" href="/images/favicon.png" type="image/png" />
	<xsl:if test="page:showFeed">
	<link rel="alternate" type="application/rss+xml" title="Actors Guild Blog" href="http://actorsguildframework.blogspot.com/feeds/posts/default?alt=rss" />
	</xsl:if>
	<link rel="StyleSheet" href="css/main.css" type="text/css"/>
	<title><xsl:value-of select="page:title"/></title>
</head>
<body>
	<div id="logobar" style="overflow: hidden; position: absolute; top: 0px; left: 0px; width: 100%; height: 116px">
		<a href="/"><img src="images/page-logo.png" style="border: 0px; position: absolute; top: 0px; left: 0px; width: 700px; height: 116px" alt="Actors Guild"/></a>
		<div style="background-image: url(images/page-top-bar.png); position: absolute; top: 0px; left: 700px; width: 1800px; height: 116px">
		<span/></div>
	</div>
	<div id="underlogo" style="position: absolute; top: 116px; left: 0px; width: 100%">
		<div id="middle">
			<div class="menu" style="float:left; margin-left: 0px; margin-top: 5px; overflow: hidden; width: 152px; height: 400px">
				<xsl:choose><xsl:when test="page:menuSelected='home'"><div class="menuSelected">Home</div></xsl:when>
				            <xsl:otherwise><div><a href="/">Home</a></div></xsl:otherwise></xsl:choose>
				<xsl:choose><xsl:when test="page:menuSelected='download'"><div class="menuSelected">Download</div></xsl:when>
				            <xsl:otherwise><div><a href="/download.xhtml">Download</a></div></xsl:otherwise></xsl:choose>
				<xsl:choose><xsl:when test="page:menuSelected='tutorial'"><div class="menuSelected">Tutorial</div></xsl:when>
				            <xsl:otherwise><div><a href="/tutorial.xhtml">Tutorial</a></div></xsl:otherwise></xsl:choose>
				<xsl:choose><xsl:when test="page:menuSelected='documentation'"><div class="menuSelected">Documentation</div></xsl:when>
				            <xsl:otherwise><div><a href="/documentation.xhtml">Documentation</a></div></xsl:otherwise></xsl:choose>
				<div><a href="http://actorsguildframework.blogspot.com/">Blog</a></div>
				<div><a href="http://code.google.com/p/actorsguildframework/w/list">Wiki</a></div>
				<div><a href="http://code.google.com/p/actorsguildframework/">Google Code</a></div>
			</div>
			<div id="bar" style="float:left; overflow: hidden; width: 2px; height: 400px; margin-top: 5px; margin-left: 2px; background-color: black">
			<span/></div>
			<div id="main" style="float:left; margin-left: 20px; margin-top: 20px; width: 640px">
				<xsl:copy-of select="page:body/child::node()"/>
				
				<div id="footer" style="font-size: smaller; margin-top: 100px">
				Last update: 
				<xsl:value-of select="year-from-dateTime(current-dateTime())"/>-<xsl:value-of select="month-from-dateTime(current-dateTime())"/>-<xsl:value-of select="day-from-dateTime(current-dateTime())"/>
		 		- 
				<a href="/imprint.xhtml">Imprint</a>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>